<?php echo $this->load->view('meta');?>
<link rel="stylesheet" href="<?=base_url();?>css/static.css" />
<title>Contact Us :: Chi Alpha at NCSU and Meredith</title>
<?php echo $this->load->view('header'); ?>
<h2><?php echo $drawingHeader ?> - Report</h2>
<div id="content">

<br />

<ul>
	<li>number of entries: <?php echo $entries->num_rows ?></li>
</ul>

<table>
<caption>Entries</caption>
<thead>
<tr>
<td colspan="7" style="text-align: center;"><?php echo $this->pagination->create_links(); ?></td>
</tr>
<tr>
	<th>name</th>
	<th>email</th>
	<th>token</th>
	<th>class</th>
	<th>phone</th>
	<th>dorm</th>
	<th>contact</th>
</tr>
</thead>
<?php $entry = $entries->result(); $start = $this->uri->segment(3, 0); $end = ($start + $config['per_page'] < $entries->num_rows ? $start + $config['per_page'] : $entries->num_rows) ?>
<?php for ($i = $start; $i < $end; $i++) : ?>
<?php $row = $entry[$i]; ?>
<tr>
	<td><?php echo $row->name ?></td>
	<td><?php echo $row->email ?></td>
	<td><?php echo $row->token ?></td>
	<td><?php echo $row->class ?></td>
	<td><?php echo $row->phone ?></td>
	<td><?php echo $row->dorm ?></td>
	<td>
		<ul>
			<?php foreach(explode(',',$row->contact) as $contact) : ?>
			<li><?php echo $contact?></li>
		<?php endforeach; ?>
		</ul>
	</td>
</tr>
<?php endfor; ?>
</table>

<?php // print_r($entries->result()); ?>

</div>

<?php echo $this->load->view('footer');?>